package com.cgwx.mapper;

import com.cgwx.entity.Authority;
import java.util.List;

public interface AuthorityMapper{
    List<Authority> getAllAuthorityByEntityId(String entityId);

    List<Authority> getAuthority(Authority authority);

    List<Authority> getNewAuthority(Authority authority);

    boolean deleteAuthority(Authority authority);

    boolean deleteAllAuthority(Authority authority);

    boolean updateAuthority(Authority authority);

    boolean insertAuthority(Authority authority);

    Authority checkAuthority(String account, String deptId, String entityId);

    Authority checkDeptAuthority(String deptId, String entityId);

    boolean updateAuthorityName(Authority authority);
}
